package com.zqx.abstract_factory.client;

import com.zqx.abstract_factory.factory.SkinFactory;
import com.zqx.abstract_factory.product.Button;
import com.zqx.abstract_factory.product.ComboBox;
import com.zqx.abstract_factory.product.TextField;
import com.zqx.abstract_factory.utils.XMLUtil;

/**
 * description：客户端测试类
 * @author zqx
 * @date 2018/09/02
 */
public class Client {

    public static void main(String[] args) {
        SkinFactory factory = (SkinFactory) XMLUtil.getBean();
        Button button = factory.createButton();
        TextField textField = factory.createTextField();
        ComboBox comboBox = factory.createComboBox();
        button.display();
        textField.display();
        comboBox.display();
    }
}
